Extensions

public interface Extensions implements ProfileService, Observable<T>, Advisable<P>

A service for working with Chrome extensions.

Since

8.0.0

Functions

Link copied to clipboard
public abstract Optional<C> get<C extends P>(Class<C> callbackClass)
Returns an Optional that contains the callback of the given type or an empty Optional if there is no registered callback with the given type.
Link copied to clipboard
public abstract Extension install(Path crxFile)
Installs the Chrome extension from the given CRX file.
Link copied to clipboard
public abstract List<Extension> list()
Returns an immutable list of installed Chrome extensions.
Link copied to clipboard
public abstract Subscription on<E extends T>(Class<E> eventClass, Observer<E> observer)
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
public abstract Profile profile()
Returns the profile of this service.
Link copied to clipboard
public abstract C remove<C extends P>(Class<C> callbackClass)
Removes a particular service callback.
Link copied to clipboard
public abstract C set<C extends P>(Class<C> callbackClass, C callback)
Sets a particular service callback.
Link copied to clipboard
public abstract void uninstall(Extension extension)
Uninstalls the given Chrome extension.